package kr.ac.jejuuniv.service;

import kr.ac.jejuuniv.model.Bookmark;
import kr.ac.jejuuniv.repository.BookmarkRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookmarkServiceImpl implements BookmarkService {
	@Autowired
	private BookmarkRepository bookmarkRepository;
	
	public void save(Bookmark bookmark) {
		bookmarkRepository.insert(bookmark);
	}

	public void remove(String id) {
		bookmarkRepository.delete(id);
	}

}
